#!/usr/bin/env bash

bsFront() {
  echo '开始编译bsFront...'
  pnpm run build
  echo '开始更新 https://fenxi365.com...'
  rsync -r -t -z -e 'ssh -p 22' --delete dist/ root@52.83.92.160:/data/wwwroot/fenxi365.com
  echo 'https://fenxi365.com更新完成'
  ssh -p 22 root@52.83.92.160 sh /data/script/mod.sh financial2
}

bsFront
